Telegram Group & Telegram Channel
Задача для новичков.

Напишите функцию, которая находит сумму первых n натуральных чисел. Сделайте свою функцию рекурсивной

Пример:
sum_numbers(5) ➞ 15
# 1 + 2 + 3 + 4 + 5 = 15

sum_numbers(1) ➞ 1

sum_numbers(12) ➞ 78

Пишите ваши варианты решения в комментах. Варианты решений будут завтра.

#новичок #coбес



tg-me.com/pythonturboru/373
Create:
Last Update:

Задача для новичков.

Напишите функцию, которая находит сумму первых n натуральных чисел. Сделайте свою функцию рекурсивной

Пример:

sum_numbers(5) ➞ 15
# 1 + 2 + 3 + 4 + 5 = 15

sum_numbers(1) ➞ 1

sum_numbers(12) ➞ 78

Пишите ваши варианты решения в комментах. Варианты решений будут завтра.

#новичок #coбес

BY Python Turbo. Уютное сообщество Python разработчиков.


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonturboru/373

View MORE
Open in Telegram


Python Turbo Уютное сообщество Python разработчиков Telegram | DID YOU KNOW?

Date: |

Launched in 2013, Telegram allows users to broadcast messages to a following via “channels”, or create public and private groups that are simple for others to access. Users can also send and receive large data files, including text and zip files, directly via the app.The platform said it has more than 500m active users, and topped 1bn downloads in August, according to data from SensorTower.

How to Use Bitcoin?

n the U.S. people generally use Bitcoin as an alternative investment, helping diversify a portfolio apart from stocks and bonds. You can also use Bitcoin to make purchases, but the number of vendors that accept the cryptocurrency is still limited. Big companies that accept Bitcoin include Overstock, AT&T and Twitch. You may also find that some small local retailers or certain websites take Bitcoin, but you’ll have to do some digging. That said, PayPal has announced that it will enable cryptocurrency as a funding source for purchases this year, financing purchases by automatically converting crypto holdings to fiat currency for users. “They have 346 million users and they’re connected to 26 million merchants,” says Spencer Montgomery, founder of Uinta Crypto Consulting. “It’s huge.”

Python Turbo Уютное сообщество Python разработчиков from tr


Telegram Python Turbo. Уютное сообщество Python разработчиков.
FROM USA